package com.gk.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.pojo.TbMemberLevel;
import com.eight.vo.ComResult;
import com.eight.vo.TbMemberLevelVo;
import com.gk.service.TbMemberLevelService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 优惠卷使用控制层
 * @author: GK
 * @date: 2023/2/28 10:42
 * @version:No1.0
 */
@RestController
@RequestMapping("/customer/tbMemberLevel/")
public class TbMemberLevelController {
    @Resource
    private TbMemberLevelService tbMemberLevelService;

    /**
     * 分页条件查询
     * @param tbMemberLevelVo 查询条件
     * @param pageIndex 当前页
     * @param pageSize 页中数据数量
     * @return  响应前端
     */
    @PostMapping("selectAll/{pageIndex}/{pageSize}")
    public Page<TbMemberLevel> selectAll(@RequestBody TbMemberLevelVo tbMemberLevelVo, @PathVariable Integer pageIndex, @PathVariable Integer pageSize){
       return tbMemberLevelService.selectAll(tbMemberLevelVo,pageIndex,pageSize);
    }
}
